From: Roger Pau Monne Date: Tue, 20 Dec 2011 07:31:40 +0000 (+0100) Subject: build: detect if libiconv is present X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~9273 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22?a=commitdiff_plain;h=8ade3afcf088522ac4004c6b8d7d69e7a562cc85;p=xen.git build: detect if libiconv is present Detect if libiconv is present in the system, since we will have to link against it when using iconv. Signed-off-by: Roger Pau Monne Committed-by: Ian Jackson Acked-by: Ian Jackson --- diff --git a/Config.mk b/Config.mk index 1c229c021f..7dcb267baa 100644 --- a/Config.mk +++ b/Config.mk @@ -181,6 +181,11 @@ CHECK_INCLUDES = $(EXTRA_INCLUDES) $(PREPEND_INCLUDES) $(APPEND_INCLUDES) EMBEDDED_EXTRA_CFLAGS := -nopie -fno-stack-protector -fno-stack-protector-all EMBEDDED_EXTRA_CFLAGS += -fno-exceptions +CONFIG_LIBICONV := $(shell export OS="`uname -s`"; \ + export CHECK_LIB="$(CHECK_LIB)"; \ + . $(XEN_ROOT)/tools/check/funcs.sh; \ + has_lib libiconv.so && echo 'y' || echo 'n') + # Enable XSM security module (by default, Flask). XSM_ENABLE ?= n FLASK_ENABLE ?= $(XSM_ENABLE)